Add missing trailing new line in warning messages
authorFrançois B <github@bonzon.com>
Thu, 7 Jan 2016 02:38:10 +0000 (03:38 +0100)
committerFrançois B <github@bonzon.com>
Thu, 7 Jan 2016 02:38:10 +0000 (03:38 +0100)
jeeps/gpsusbwin.cc
nmea.cc

index 2567a87e1f3266cdfcca55c7f986afa14404d624..67f4e100bfde8083018bfb33717eabf4fa2d7f58 100644 (file)
@@ -241,7 +241,7 @@ gusb_init(const char* pname, gpsdevh** dh)
 
   if (hdevinfo == INVALID_HANDLE_VALUE) {
     GPS_Serial_Error("SetupDiGetClassDevs failed");
-    warning("Is the Garmin USB driver installed?");
+    warning("Is the Garmin USB driver installed?\n");
     return 0;
   }
 
@@ -284,7 +284,7 @@ gusb_init(const char* pname, gpsdevh** dh)
       } else {
 
         GPS_Serial_Error("SetupDiEnumDeviceInterfaces");
-        warning("Is the Garmin USB unit number %d powered up and connected?", un);
+        warning("Is the Garmin USB unit number %d powered up and connected?\n", un);
         return 0;
       }
     }
diff --git a/nmea.cc b/nmea.cc
index db90da7787fdd9c48bd756f2451d1fcc55a12e23..9b6e09351a85ad31b94f340e5994428c012decf5 100644 (file)
--- a/nmea.cc
+++ b/nmea.cc
@@ -34,7 +34,7 @@
 #include <stdio.h>
 
 #include <QtCore/QStringList>
-  
+
 /**********************************************************
 
    ' 1      2      3        4 5         6 7 8  9   10   11 12  13 14 15
@@ -692,7 +692,7 @@ gpgsa_parse(char* ibuf)
                &prn[0],&prn[1],&prn[2],&prn[3],&prn[4],&prn[5],
                &prn[6],&prn[7],&prn[8],&prn[9],&prn[10],&prn[11]);
   if (scn < 4) {
-    warning(MYNAME ": Short GSA sentence.");
+    warning(MYNAME ": Short GSA sentence.\n");
   }
   /*
        sscanf has scanned all the leftmost elements
@@ -1249,7 +1249,7 @@ nmea_wayptpr(const Waypoint* wpt)
     gbfflush(file_out);
     gb_sleep(sleepus);
   }
-} 
+}
 void
 nmea_track_init(const route_head*)
 {